package com.xq.xq.kotlinlearnsingletom.kotlin

/**
 * @author aidenquan
 *         Created by junlintianxia on 2021/07/04.
 */
class SingletonDDKt private constructor() {

    override fun toString(): String {
        return "SingletonDDKt"
    }

    companion object {
        val intance: SingletonDDKt by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
            SingletonDDKt()
        }
    }
}